home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / lib / partman / finish.d / 70aptinstall_basicfilesystems < prev    next >
Encoding:
Text File  |  2007-04-12  |  660 b   |  41 lines

  1. #!/bin/sh
  2.  
  3. . /lib/partman/definitions.sh
  4.  
  5. swap=no
  6. ext2=no
  7. fat=no
  8.  
  9. for dev in $DEVICES/*; do
  10.     [ -d "$dev" ] || continue
  11.     cd $dev
  12.     partitions=
  13.     open_dialog PARTITIONS
  14.     while { read_line num id size type fs path name; [ "$id" ]; }; do
  15.     [ "$fs" != free ] || continue
  16.     [ -f $id/method -a -f $id/acting_filesystem ] || continue
  17.     filesystem=$(cat $id/acting_filesystem)
  18.     case $filesystem in
  19.         linux-swap)
  20.         swap=yes
  21.         ;;
  22.         ext2)
  23.         ext2=yes
  24.         ;;
  25.         fat16|fat32)
  26.         fat=yes
  27.         ;;
  28.     esac
  29.     done
  30.     close_dialog
  31. done
  32.  
  33. if [ "$ext2" = yes ]; then
  34.     apt-install e2fsprogs || true
  35. fi
  36.  
  37. if [ "$fat" = yes ]; then
  38.     apt-install dosfstools || true
  39. fi
  40.  
  41.